package com.vftour.stu.sentinel.feign;

import com.vftour.stu.sentinel.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * UserClient
 *
 * @version 1.0
 * @author: 东东 | d@tke.store
 * @date :  2022/3/6 12:03 上午
 */
@FeignClient(value = "user-client", fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {

    @GetMapping("/user/{id}")
    User getById(@PathVariable("id") String id);
}
